var mongoose = require('mongoose');

var db = require("../config").db;//数据库地址

exports.connect = function(callback) {
	mongoose.connect(db.host, db.database, function(err){
		console.log("connect mongodb failed: " + err);
	})
    //mongoose.connect(db.webHost);
}

exports.disconnect = function(callback) {
    mongoose.disconnect(callback);
}

exports.setup = function(callback) { callback(null); }
